package shujvjiegou.wekk2;

import java.util.Scanner;

public class NumC {
    public static void main(String[] args) {
        try {
            Scanner sc = new Scanner(System.in);
            int num = sc.nextInt(), i, j;
            String str;
            char ch;
            int total[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
            for (i = 1; i <= num; i++) {
                str = i + "";
                for (j = 0; j < str.length(); j++) {
                    ch = str.charAt(j);
                    switch (ch) {
                        case ('0'):
                            total[0]++;
                            break;
                        case ('1'):
                            total[1]++;
                            break;
                        case ('2'):
                            total[2]++;
                            break;
                        case ('3'):
                            total[3]++;
                            break;
                        case ('4'):
                            total[4]++;
                            break;
                        case ('5'):
                            total[5]++;
                            break;
                        case ('6'):
                            total[6]++;
                            break;
                        case ('7'):
                            total[7]++;
                            break;
                        case ('8'):
                            total[8]++;
                            break;
                        case ('9'):
                            total[9]++;
                            break;
                    }
                }
            }
            for (i = 0; i < 10; i++) {
                System.out.print(total[i]);
                System.out.print(' ');
            }

        } catch (Exception e) {

        }
    }
}
